package com.xiao.hao.convertor;


import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;
import com.xiao.hao.config.LocalDateTimeConfig;
import com.xiao.hao.req.XhSchemeListInsertReq;
import com.xiao.hao.req.XhSchemeListQueryPageReq;
import com.xiao.hao.req.XhSchemeListUpdateReq;
import com.xiao.hao.resp.XhSchemeListResp;
import com.xiao.hao.entity.XhSchemeList;

/**
*
*
* @Description 方案列表 类型转换
* @Author xiaohao
* @Date 2025-03-05 17:23:15
*/
@Mapper(uses = {LocalDateTimeConfig.class}, componentModel = "spring")
public interface XhSchemeListConvertor {

    XhSchemeListConvertor INSTANCE = Mappers.getMapper(XhSchemeListConvertor.class);

    /**
    * 功能描述:
    *
    * @param req
    * @return com.xiao.hao.entity.XhSchemeList
    * @author xiaohao
    * @date 2025-03-05 17:23:15
    */
    XhSchemeList reqToEntity(XhSchemeListInsertReq req);

    /**
    * 功能描述:
    *
    * @param req
    * @return com.xiao.hao.entity.XhSchemeList
    * @author xiaohao
    * @date 2025-03-05 17:23:15
    */
    XhSchemeList reqToEntity(XhSchemeListUpdateReq req);


    /**
    * 功能描述:
    *
    * @param entity
    * @return com.xiao.hao.resp.XhSchemeListResp
    * @author xiaohao
    * @date 2025-03-05 17:23:15
    */
    XhSchemeListResp entityToResp(XhSchemeList entity);

    /**
    * 功能描述:
    *
    * @param list
    * @return java.util.List<com.xiao.hao.resp.XhSchemeListResp>
    * @author xiaohao
    * @date 2025-03-05 17:23:15
    */
    List<XhSchemeListResp> entityListToRespList(List<XhSchemeList> list);
}



